<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            /* 给父级添加flex属性 */
            display: flex;
            width: 800px;
            height: 300px;
            background-color: pink;
            /* 默认的主轴 x轴 行 row  剩下的就是侧轴*/
            /* 元素是跟着主轴布局的 */
            /* flex-direction: row; */
            /* 这个是翻转 */
            /* flex-direction: row-reverse; */
            /* 设置主轴为y轴 */
            /* flex-direction: column; */
            /* 设置主轴为y轴 翻转 */
            flex-direction: column-reverse;
        }

        div span{
            width: 150px;
            height: 100px;
            background-color: gray;
        }
    </style>
</head>

<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </div>
</body>

</html>